/*
 * @Description: cache 缓存 为true则页面缓存
 * @Author: Mr.chen
 * @LastEditors: Mr.chen
 * @LastEditTime: 2022-09-15 15:31:13
 */

import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route = [
  {
    path: '/pages',
    component: Layout,
    redirect: '/pages/csTable',
    meta: { title: '页面', icon: 'el-icon-document-copy' },
    alwayShow: false,
    children: [
      {
        path: 'csTable',
        component: createNameComponent(() =>
          import('@/views/main/pages/csTable/index.vue')
        ),
        meta: { title: '测试表格', cache: false }
      },
      {
        name: 'chrTable',
        path: 'chrTable',
        component: createNameComponent(() =>
          import('@/views/main/pages/chrTable/index.vue')
        ),
        hideMenu: true,
        meta: { title: '测试表格2', cache: false }
      }
    ]
  }
]

export default route
